function freqRatio = DO_FIDSequence(obj, varargin)
%DO_FIDSEQUENCE Summary of this function goes here
%   Detailed explanation goes here
    p=inputParser;
    p.addParameter('nExp', 100, @(x) isscalar(x) && x > 0);
    p.addParameter('name', '', @ischar);
    p.addParameter('isSave', true, @islogical);
    p.parse(varargin{:});
    
    nExp = p.Results.nExp;
    nameStr = p.Results.name;
    
    figure; ax=axes;
    ratio = nan(1, nExp); data=cell(1, nExp);
    for k = 1:nExp
        [fidSignal, fidSpectrum] = obj.GET_FIDResonance;
        data{k} = struct('fidSignal', fidSignal,...
                         'fidSpectrum', fidSpectrum,...
                         'freqRatio', obj.getFrequencyRatio);
        obj.session.addTemporaryData(data{k});

        ratio(k) = obj.getFrequencyRatio();
        plot(ax, ratio, 'ro-');
    end


    obj.session.addMeasurementData(['freqRatio', nameStr], data);
    if p.Results.isSave
        MeasurementSession.save(obj.session);
    end

    freqRatio = zeros(1, nExp);
    for k=1:nExp
        freqRatio(k) = data{k}.freqRatio;
    end
    figure
    plot(freqRatio, '-ro', 'linewidth', 1.5);
end

